package net.starelement.gamelib;

import cn.nukkit.plugin.PluginBase;

/**  StarElement GameLib 主类
 *
 * @author Ruok233
 * @since NukkitX API 1.0.9 | StarElement Project v1-alpaca
 *
 * create: 2019/12/07
 * update: 2019/12/07
 */
public class GameLib extends PluginBase {

    private long startTime;

    public static GameLib instance;

    @Override
    public void onLoad() {
        super.onLoad();
        startTime = System.currentTimeMillis();
    }

    @Override
    public void onEnable() {
        super.onEnable();
        getServer().getLogger().info("§f游戏前置插件(§aGameLib§f)已启动...  耗时 §a" + (System.currentTimeMillis() - startTime) + "§fms");
        instance = this;
    }

    //获取本插件实例的接口
    public static GameLib getInstance() {
        return instance;
    }

}
